//
//  XMGFirstPageItem.m
//  weibo
//
//  Created by DP on 16/7/6.
//  Copyright © 2016年 DP. All rights reserved.
//

#import "XMGFirstPageItem.h"

@implementation XMGFirstPageItem
+ (instancetype)firstPageItemDict:(NSDictionary *)dict {
    return [[self alloc]initWithDict:dict];
}
- (instancetype)initWithDict:(NSDictionary *)dict {
    if (self = [super init]) {
      
        self.location = dict[@"user"][@"location"];
        self.profile_image_url = dict[@"user"][@"profile_image_url"];
        self.creat_at = dict[@"creat_at"];
        self.bmiddle_pic = dict[@"bmiddle_pic"];
        self.name = dict[@"user"][@"name"];
        self.source = dict[@"source"];
        self.text =dict[@"text"];
    }
    return self;
}

@end
